package com.koudai.finance.dao;

import com.koudai.finance.entity.Trade;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 交易信息
 * @author: ls
 * @Date: 2020-08-10 17:33:02
 */
@Mapper
public interface TradeDao {

    int save(Trade trade);

    Trade getTradeByTradeNo(String tradeNo);

    int update(Trade trade);

    Integer checkIsExist(String tradeNo);

    List<Trade> getTradeList(Integer userId);

    int delete(@Param("userId") Integer userId, @Param("tradeNo")String tradeNo);
}
